Skip to content

Conversation

@querolita
Copy link
Member

@querolita querolita commented Nov 11, 2025

@querolita querolita self-assigned this Nov 17, 2025
Base automatically changed from florian/native-proof-2 to native/napi November 17, 2025 16:58
@querolita querolita marked this pull request as ready for review November 22, 2025 21:31
Copy link

@Shigoto-dev19 Shigoto-dev19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! Just left small comments / questions

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More changes to come from the child PR #3381.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More changes to come from the child PR #3381.

self.sorted = s
}

#[napi(setter, js_name="set_aggreg")]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#[napi(setter, js_name="set_aggreg")]
#[napi(setter, js_name = "set_aggreg")]

Just for consistency, sometimes we do leave white spaces like in here and sometimes not

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, I will have to create a big PR to native/napi to pass the lint checks

}

#[napi(js_name = [<"caml_" $name:snake "_srs_create">])]
pub fn [<caml_ $name:snake _srs_create>](depth: i32) -> External<[<Napi $name:camel Srs>]> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did using External here cause any errors?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also see that you used to_bytes_external but isn't it possible to work around that by consistently using External<[<Napi $name:camel Srs>]> 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fine to use externals as inputs but the first time the SRS is created I needed to pass the whole thing. Will give it a try again once more changes are in, but that was the case back then at least.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see! Thanks for the clarification :)

(`proof-systems`) Native Prover with Napi - Verifier Index
@querolita querolita merged commit 6714934 into native/napi Dec 9, 2025
21 of 26 checks passed
@querolita querolita deleted the querolita/napi-proof branch December 9, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants